home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sportware Golf
/
Sportware Golf.iso
/
pc
/
setup.inf
< prev
next >
Wrap
Text File
|
1995-09-17
|
2KB
|
74 lines
DefineVariables
Text [ProductName] := Sportware Golf
Text [DefaultInstallDir] := C:\SWGOLF
Text [IconCmdLine] := SWGOLF.EXE
Text [IconFile] := SWGOLF.ICO
EndDefineVariables
;; Setup screen
SetDefaultBitmap off
ShowWindow Maximized
Do MyDialog
Procedure MyDialog
[Number1] := 0
;; Product Introduction Screen
DialogBox 250 50 UseHeader "Sportware Golf Installation" Returns [Number1]
CText @xy(0,10) 250 50 "From where do you want to run the program?"
DefPushButton @xy(60, 30) 40 15 "Hard Disk" 1
DefPushButton @xy(150, 30) 40 15 "CD-ROM" 2
EndDialogBox
;; User dialog for installation directory
Dialog [DefaultInstallDir] 43
PLEASE CHOOSE YOUR INSTALLATION DIRECTORY
ON A FIXED DRIVE
Make your choice and press <Enter> or click on OK
EndDialog
;; Create directory
CreateDirectoryIfNecessary [DefaultInstallDir]
;; Copy Projector and DLLs
if [Number1] = 1
CopyFiles from [InstallFromDrive]:\ to [DefaultInstallDir]
SWGOLF.EXE
FILEIO.DLL
EndCopyFiles
EndIf
Dialog [WindowsDirectory] 43
PLEASE CHOOSE YOUR WINDOWS DIRECTORY
Make your choice and press <Enter> or click on OK
EndDialog
If FileExists [DefaultInstallDir]\SWGOLF.GRP
else
;; Create Program Group and Icon
if [Number1] = 1
ProgramManagerDDe
CreateGroup(SWGOLF,[DefaultInstallDir]\SWGOLF.GRP)
AddItem([DefaultInstallDir]\SWGOLF.EXE,[ProductName])
EndProgramManagerDDE
else
ProgramManagerDDe
CreateGroup(SWGOLF,[DefaultInstallDir]\SWGOLF.GRP)
AddItem([InstallFromDrive]:\SWGOLF.EXE,[ProductName])
EndProgramManagerDDE
EndIf
EndIf
If FileExists [WindowsDirectory]\SYSTEM\QTIM.DLL
else
Run [InstallFromDrive]:\QTW\SETUP.EXE
EndIf
EndProcedure
EndScript